package com.gagakuai.enumeration;

public enum BusinessCodeEnum {

    /*
     *
     *
     *  通用业务状态码： 书写规则： 加COMMON 前缀
     *    1：请求重复提交
     */
    COMMON_IS_REAPTED_REQUESTED(10001, "请不要重复提交"),

    COMMON_PARAM_NOT_NULL(10001, "参数不能为空"),

    COMMON_GET_USER_FAILED(10002, "获取用户失败"),


    /*
     * 文件状态码
     */
    FILE_UPLOAD_SUCCESS(200, "文件上传成功!"),

    FILE_UPLOAD_FAILED(40101, "文件上传成功!"),

    FILE_DELETED_SUCCESS(200, "文件删除成功!"),

    FILE_DOWNLOAD_SUCCESS(200, "文件下载成功!");




    private final int code;
    private final String description;

    BusinessCodeEnum(int code, String description) {
        this.code = code;
        this.description = description;
    }

    public int getCode() {
        return this.code;
    }

    public String getDescription() {
        return this.description;
    }
}
